<!DOCTYPE html>
<html>
  <head>
    <title>expenses</title>
  </head>
  <body>
    <table>
      <thead>
        <tr>
          <td>Date</td>
          <td>Amount</td>
          <td>What</td>
          <td>People</td>
        </tr>
      </thead>
      <tbody>
        {% for expense in expenses %}
        <tr>
          <td>{{expense.date}}</td>
          <td>{{expense.amount}}</td>
          <td>{{expense.description}}</td>
          <td>{{expense.debitors}}</td>
        </tr>
        {% endfor %}
      </tbody>
    </table>
    <div><a href="/list?page={{newer_page}}">Newer</a></div>
    <div><a href="/list?page={{older_page}}">Older</a></div>
    <div><a href="/add">Add Expense</a></div>
  </body>
</html>